.class public final LVitxI/axzNB;
.super Ljava/lang/Object;


# static fields
.field private static final WInDc:Ljava/util/concurrent/Executor;

.field static final synthetic cGgZW:Z


# instance fields
.field private final FFvpi:Ljava/lang/Runnable;

.field private final PDxbm:I

.field final SejbL:LVitxI/jtHon/KQisc/KQgGh;

.field lgUzY:Z

.field private final mpgUB:Ljava/util/Deque;

.field private final qZJoC:J


# direct methods
.method static constructor <clinit>()V
    .locals 9

    const/4 v8, 0x1

    const/4 v2, 0x0

    const-class v0, LVitxI/axzNB;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_0

    move v0, v8

    :goto_0
    sput-boolean v0, LVitxI/axzNB;->cGgZW:Z

    new-instance v1, Ljava/util/concurrent/ThreadPoolExecutor;

    const v3, 0x7fffffff

    const-wide/16 v4, 0x3c

    sget-object v6, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v7, Ljava/util/concurrent/SynchronousQueue;

    invoke-direct {v7}, Ljava/util/concurrent/SynchronousQueue;-><init>()V

    const-string v0, "OkHttp ConnectionPool"

    invoke-static {v0, v8}, LVitxI/jtHon/AthHa;->fLczz(Ljava/lang/String;Z)Ljava/util/concurrent/ThreadFactory;

    move-result-object v8

    invoke-direct/range {v1 .. v8}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    sput-object v1, LVitxI/axzNB;->WInDc:Ljava/util/concurrent/Executor;

    return-void

    :cond_0
    move v0, v2

    goto :goto_0
.end method

.method public constructor <init>()V
    .locals 4

    const/4 v0, 0x5

    const-wide/16 v2, 0x5

    sget-object v1, Ljava/util/concurrent/TimeUnit;->MINUTES:Ljava/util/concurrent/TimeUnit;

    invoke-direct {p0, v0, v2, v3, v1}, LVitxI/axzNB;-><init>(IJLjava/util/concurrent/TimeUnit;)V

    return-void
.end method

.method public constructor <init>(IJLjava/util/concurrent/TimeUnit;)V
    .locals 4

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, LVitxI/dArtN;

    invoke-direct {v0, p0}, LVitxI/dArtN;-><init>(LVitxI/axzNB;)V

    iput-object v0, p0, LVitxI/axzNB;->FFvpi:Ljava/lang/Runnable;

    new-instance v0, Ljava/util/ArrayDeque;

    invoke-direct {v0}, Ljava/util/ArrayDeque;-><init>()V

    iput-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    new-instance v0, LVitxI/jtHon/KQisc/KQgGh;

    invoke-direct {v0}, LVitxI/jtHon/KQisc/KQgGh;-><init>()V

    iput-object v0, p0, LVitxI/axzNB;->SejbL:LVitxI/jtHon/KQisc/KQgGh;

    iput p1, p0, LVitxI/axzNB;->PDxbm:I

    invoke-virtual {p4, p2, p3}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J

    move-result-wide v0

    iput-wide v0, p0, LVitxI/axzNB;->qZJoC:J

    const-wide/16 v0, 0x0

    cmp-long v0, p2, v0

    if-gtz v0, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "keepAliveDuration <= 0: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    return-void
.end method

.method private DMFbT(LVitxI/jtHon/KQisc/oJgJZ;J)I
    .locals 8

    const/4 v2, 0x0

    iget-object v3, p1, LVitxI/jtHon/KQisc/oJgJZ;->PlLzE:Ljava/util/List;

    move v1, v2

    :cond_0
    :goto_0
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/ref/Reference;

    invoke-virtual {v0}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    invoke-static {}, LVitxI/jtHon/ZOKET/rlafa;->GfDmv()LVitxI/jtHon/ZOKET/rlafa;

    move-result-object v0

    const/4 v4, 0x5

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "A connection to "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {p1}, LVitxI/jtHon/KQisc/oJgJZ;->QXqCz()LVitxI/qBixa;

    move-result-object v6

    invoke-virtual {v6}, LVitxI/qBixa;->wFCDT()LVitxI/EwvmC;

    move-result-object v6

    invoke-virtual {v6}, LVitxI/EwvmC;->pIceg()LVitxI/UuIeE;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, " was leaked. Did you forget to close a response body?"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v0, v4, v5, v6}, LVitxI/jtHon/ZOKET/rlafa;->BjmLZ(ILjava/lang/String;Ljava/lang/Throwable;)V

    invoke-interface {v3, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    const/4 v0, 0x1

    iput-boolean v0, p1, LVitxI/jtHon/KQisc/oJgJZ;->oblmG:Z

    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-wide v0, p0, LVitxI/axzNB;->qZJoC:J

    sub-long v0, p2, v0

    iput-wide v0, p1, LVitxI/jtHon/KQisc/oJgJZ;->yuBTl:J

    :goto_1
    return v2

    :cond_2
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v2

    goto :goto_1
.end method


# virtual methods
.method EfDIB(J)J
    .locals 13

    const/4 v0, 0x0

    const/4 v1, 0x0

    const-wide/high16 v4, -0x8000000000000000L

    monitor-enter p0

    :try_start_0
    iget-object v2, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v2}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;

    move-result-object v8

    move v2, v0

    move v7, v0

    :goto_0
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/jtHon/KQisc/oJgJZ;

    invoke-direct {p0, v0, p1, p2}, LVitxI/axzNB;->DMFbT(LVitxI/jtHon/KQisc/oJgJZ;J)I

    move-result v3

    if-lez v3, :cond_0

    add-int/lit8 v0, v7, 0x1

    move v7, v0

    goto :goto_0

    :cond_0
    add-int/lit8 v6, v2, 0x1

    iget-wide v2, v0, LVitxI/jtHon/KQisc/oJgJZ;->yuBTl:J

    sub-long v2, p1, v2

    cmp-long v9, v2, v4

    if-lez v9, :cond_6

    move-wide v10, v2

    move-object v2, v0

    move-wide v0, v10

    :goto_1
    move-wide v4, v0

    move-object v1, v2

    move v2, v6

    goto :goto_0

    :cond_1
    iget-wide v8, p0, LVitxI/axzNB;->qZJoC:J

    cmp-long v0, v4, v8

    if-gez v0, :cond_2

    iget v0, p0, LVitxI/axzNB;->PDxbm:I

    if-le v2, v0, :cond_3

    :cond_2
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0, v1}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {v1}, LVitxI/jtHon/KQisc/oJgJZ;->byqPk()Ljava/net/Socket;

    move-result-object v0

    invoke-static {v0}, LVitxI/jtHon/AthHa;->aCRCQ(Ljava/net/Socket;)V

    const-wide/16 v0, 0x0

    :goto_2
    return-wide v0

    :cond_3
    if-lez v2, :cond_4

    :try_start_1
    iget-wide v0, p0, LVitxI/axzNB;->qZJoC:J

    sub-long/2addr v0, v4

    monitor-exit p0

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_4
    if-lez v7, :cond_5

    :try_start_2
    iget-wide v0, p0, LVitxI/axzNB;->qZJoC:J

    monitor-exit p0

    goto :goto_2

    :cond_5
    const/4 v0, 0x0

    iput-boolean v0, p0, LVitxI/axzNB;->lgUzY:Z

    const-wide/16 v0, -0x1

    monitor-exit p0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    :cond_6
    move-object v2, v1

    move-wide v0, v4

    goto :goto_1
.end method

.method public KJCGw()V
    .locals 4

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/jtHon/KQisc/oJgJZ;

    iget-object v3, v0, LVitxI/jtHon/KQisc/oJgJZ;->PlLzE:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_0

    const/4 v3, 0x1

    iput-boolean v3, v0, LVitxI/jtHon/KQisc/oJgJZ;->oblmG:Z

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-interface {v2}, Ljava/util/Iterator;->remove()V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_1
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/jtHon/KQisc/oJgJZ;

    invoke-virtual {v0}, LVitxI/jtHon/KQisc/oJgJZ;->byqPk()Ljava/net/Socket;

    move-result-object v0

    invoke-static {v0}, LVitxI/jtHon/AthHa;->aCRCQ(Ljava/net/Socket;)V

    goto :goto_1

    :cond_2
    return-void
.end method

.method KeGde(LVitxI/jtHon/KQisc/oJgJZ;)V
    .locals 2

    sget-boolean v0, LVitxI/axzNB;->cGgZW:Z

    if-nez v0, :cond_0

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-boolean v0, p0, LVitxI/axzNB;->lgUzY:Z

    if-nez v0, :cond_1

    const/4 v0, 0x1

    iput-boolean v0, p0, LVitxI/axzNB;->lgUzY:Z

    sget-object v0, LVitxI/axzNB;->WInDc:Ljava/util/concurrent/Executor;

    iget-object v1, p0, LVitxI/axzNB;->FFvpi:Ljava/lang/Runnable;

    invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    :cond_1
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0, p1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public declared-synchronized ixksX()I
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0}, Ljava/util/Deque;->size()I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized jlqKh()I
    .locals 3

    monitor-enter p0

    const/4 v1, 0x0

    :try_start_0
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/jtHon/KQisc/oJgJZ;

    iget-object v0, v0, LVitxI/jtHon/KQisc/oJgJZ;->PlLzE:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v0

    if-eqz v0, :cond_1

    add-int/lit8 v0, v1, 0x1

    :goto_1
    move v1, v0

    goto :goto_0

    :cond_0
    monitor-exit p0

    return v1

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_1
    move v0, v1

    goto :goto_1
.end method

.method vDNoL(LVitxI/EwvmC;LVitxI/jtHon/KQisc/gQAvS;)LVitxI/jtHon/KQisc/oJgJZ;
    .locals 4

    sget-boolean v0, LVitxI/axzNB;->cGgZW:Z

    if-nez v0, :cond_0

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LVitxI/jtHon/KQisc/oJgJZ;

    iget-object v2, v0, LVitxI/jtHon/KQisc/oJgJZ;->PlLzE:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    iget v3, v0, LVitxI/jtHon/KQisc/oJgJZ;->Opqcy:I

    if-ge v2, v3, :cond_1

    invoke-virtual {v0}, LVitxI/jtHon/KQisc/oJgJZ;->QXqCz()LVitxI/qBixa;

    move-result-object v2

    iget-object v2, v2, LVitxI/qBixa;->xyemU:LVitxI/EwvmC;

    invoke-virtual {p1, v2}, LVitxI/EwvmC;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-boolean v2, v0, LVitxI/jtHon/KQisc/oJgJZ;->oblmG:Z

    if-nez v2, :cond_1

    invoke-virtual {p2, v0}, LVitxI/jtHon/KQisc/gQAvS;->hzdHu(LVitxI/jtHon/KQisc/oJgJZ;)V

    :goto_0
    return-object v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method xinto(LVitxI/jtHon/KQisc/oJgJZ;)Z
    .locals 1

    sget-boolean v0, LVitxI/axzNB;->cGgZW:Z

    if-nez v0, :cond_0

    invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    iget-boolean v0, p1, LVitxI/jtHon/KQisc/oJgJZ;->oblmG:Z

    if-nez v0, :cond_1

    iget v0, p0, LVitxI/axzNB;->PDxbm:I

    if-nez v0, :cond_2

    :cond_1
    iget-object v0, p0, LVitxI/axzNB;->mpgUB:Ljava/util/Deque;

    invoke-interface {v0, p1}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_2
    invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V

    const/4 v0, 0x0

    goto :goto_0
.end method
